unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, UnitQueryIP, WinSock, Buttons;

type
  TForm1 = class(TForm)
    Edit1: TEdit;
    BitBtn1: TBitBtn;
    Memo1: TMemo;
    Label1: TLabel;
    Label2: TLabel;
    procedure FormCreate(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure BitBtn1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    //IPQuery : TQueryIP;
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.BitBtn1Click(Sender: TObject);
var i:integer;
var ip,temp:string;
begin
  Memo1.Clear;
  ip := Edit1.text;
  {
  for I := 1 to 100000 do
  begin
    temp := IPQuery.QueryIP(ip);
  end;
  }
  Memo1.Lines.Add(IPQuery.QueryIP(Edit1.text));
  beep();
end;

procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  //IPQuery.Free;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  //IPQuery := TQueryIP.Create('IPWry.dat');
end;

end.
